package com.card.manager.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.card.aab.domain.Aab;
import com.card.aac.domain.Aac;
import com.card.framework.mybatis.optimist.Identity;
import com.card.framework.mybatis.optimist.OptimisticLocking;
import com.card.framework.mybatis.optimist.Version;
import com.card.framework.util.JsonDateSerializer;
@OptimisticLocking("acb")
public class Acb {
    /**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.id
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	@Identity("id")
	private Long id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.abaid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private String abaid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.aacid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private String aacid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.aabid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private Long aabid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.MoneyType
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private Long moneytype;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.ConsDate
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	@JsonSerialize(using = JsonDateSerializer.class)
	private Date consdate;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.ConsMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private BigDecimal consmoney;
	private BigDecimal fee;
	
	public BigDecimal getFee() {
		return fee;
	}

	public void setFee(BigDecimal fee) {
		this.fee = fee;
	}


	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.Delflg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private Byte delflg;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.CreatDateTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	@JsonSerialize(using = JsonDateSerializer.class)
	private Date creatdatetime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.CreatUserID
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private String creatuserid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.OrderFlg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private Byte orderflg;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.returnReason
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private String returnreason;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.returnTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	@JsonSerialize(using = JsonDateSerializer.class)
	private Date returntime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.returnMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private BigDecimal returnmoney;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.returnUserId
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	private String returnuserid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.version
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	@Version("version")
	private Long version;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column acb.serialNumber
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Long getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.id
	 * @param id  the value for acb.id
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.abaid
	 * @return  the value of acb.abaid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public String getAbaid() {
		return abaid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.abaid
	 * @param abaid  the value for acb.abaid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setAbaid(String abaid) {
		this.abaid = abaid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.aacid
	 * @return  the value of acb.aacid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public String getAacid() {
		return aacid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.aacid
	 * @param aacid  the value for acb.aacid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setAacid(String aacid) {
		this.aacid = aacid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.aabid
	 * @return  the value of acb.aabid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Long getAabid() {
		return aabid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.aabid
	 * @param aabid  the value for acb.aabid
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setAabid(Long aabid) {
		this.aabid = aabid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.MoneyType
	 * @return  the value of acb.MoneyType
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Long getMoneytype() {
		return moneytype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.MoneyType
	 * @param moneytype  the value for acb.MoneyType
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setMoneytype(Long moneytype) {
		this.moneytype = moneytype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.ConsDate
	 * @return  the value of acb.ConsDate
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Date getConsdate() {
		return consdate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.ConsDate
	 * @param consdate  the value for acb.ConsDate
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setConsdate(Date consdate) {
		this.consdate = consdate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.ConsMoney
	 * @return  the value of acb.ConsMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public BigDecimal getConsmoney() {
		return consmoney;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.ConsMoney
	 * @param consmoney  the value for acb.ConsMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setConsmoney(BigDecimal consmoney) {
		this.consmoney = consmoney;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.Delflg
	 * @return  the value of acb.Delflg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Byte getDelflg() {
		return delflg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.Delflg
	 * @param delflg  the value for acb.Delflg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setDelflg(Byte delflg) {
		this.delflg = delflg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.CreatDateTime
	 * @return  the value of acb.CreatDateTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Date getCreatdatetime() {
		return creatdatetime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.CreatDateTime
	 * @param creatdatetime  the value for acb.CreatDateTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setCreatdatetime(Date creatdatetime) {
		this.creatdatetime = creatdatetime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.CreatUserID
	 * @return  the value of acb.CreatUserID
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public String getCreatuserid() {
		return creatuserid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.CreatUserID
	 * @param creatuserid  the value for acb.CreatUserID
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setCreatuserid(String creatuserid) {
		this.creatuserid = creatuserid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.OrderFlg
	 * @return  the value of acb.OrderFlg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Byte getOrderflg() {
		return orderflg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.OrderFlg
	 * @param orderflg  the value for acb.OrderFlg
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setOrderflg(Byte orderflg) {
		this.orderflg = orderflg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.returnReason
	 * @return  the value of acb.returnReason
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public String getReturnreason() {
		return returnreason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.returnReason
	 * @param returnreason  the value for acb.returnReason
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setReturnreason(String returnreason) {
		this.returnreason = returnreason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.returnTime
	 * @return  the value of acb.returnTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Date getReturntime() {
		return returntime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.returnTime
	 * @param returntime  the value for acb.returnTime
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setReturntime(Date returntime) {
		this.returntime = returntime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.returnMoney
	 * @return  the value of acb.returnMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public BigDecimal getReturnmoney() {
		return returnmoney;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.returnMoney
	 * @param returnmoney  the value for acb.returnMoney
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setReturnmoney(BigDecimal returnmoney) {
		this.returnmoney = returnmoney;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.returnUserId
	 * @return  the value of acb.returnUserId
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public String getReturnuserid() {
		return returnuserid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.returnUserId
	 * @param returnuserid  the value for acb.returnUserId
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setReturnuserid(String returnuserid) {
		this.returnuserid = returnuserid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column acb.version
	 * @return  the value of acb.version
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public Long getVersion() {
		return version;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column acb.version
	 * @param version  the value for acb.version
	 * @mbggenerated  Sun Oct 07 14:07:06 CST 2012
	 */
	public void setVersion(Long version) {
		this.version = version;
	}


	private String serialnumber;

	public String getSerialnumber() {
		return serialnumber;
	}

	public void setSerialnumber(String serialnumber) {
		this.serialnumber = serialnumber;
	}

	private Aba aba;
    private Aac aac;
    private Aab aab;
    
    public Aba getAba() {
		return aba;
	}

	public void setAba(Aba aba) {
		this.aba = aba;
	}

	public Aac getAac() {
		return aac;
	}

	public void setAac(Aac aac) {
		this.aac = aac;
	}

	public Aab getAab() {
		return aab;
	}

	public void setAab(Aab aab) {
		this.aab = aab;
	}
}